<script type="text/html" template lay-done="layui.data.sendParams(d.params)">
    <table id="LAY-maintain-database-show" lay-filter="LAY-maintain-database-show"></table>
</script>
<script>
    layui.data.sendParams = function(params){
        const fromData = params.data;
        layui.use(['index', 'baseMethods'], function (){
            const baseMethods = layui.baseMethods;
            baseMethods.table({
                elem: '#LAY-maintain-database-show',
                url: '/maintain/database/show',
                page: false,
                where: {table: fromData.name},
                cols: [[
                    {field: 'field', title: '字段名称'},
                    {field: 'type', title: '字段类型'},
                    {field: 'comment', title: '字段注释'}
                ]]
            });
        })
    };
</script>
